//main.cpp
#include <iostream>
#include "include/pthread.h"
#include <windows.h>
using namespace std;

void* Function(void* Param)
{
	pthread_t myid = pthread_self();
	while(1)
	{
		cout<<"thread id = "<<myid.x<<endl;
		Sleep(4000);
	}
	return NULL;
}


int main()
{
	pthread_t pid;
	pthread_create(&pid, NULL, Function, NULL);
	while(1)
	{
		cout<<"In father process."<<endl;
		Sleep(2000);
	}
	cin.get();
	return 0;
}